<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="author" content="计科2411-32-赵红云">
    <title>横向超链接</title>
    <style>
        .group {
            display: flex;
            width: 500px;
            margin: 0 auto;

        }

        .group a {
            flex: 1;
            background-color: pink;
            padding: 15px 0;
            text-align: center;
            text-decoration: none;
            color: #000;
            font-size: 16px;
        }

        .group a:hover {
            background-color: #000;
            color: pink;

        }
    </style>
</head>

<body>
    <div class="group">
        <a href="#">链接1</a>
        <a href="#">链接2</a>
        <a href="#">链接3</a>
        <a href="#">链接4</a>
    </div>
</body>

</html>